import { View, Text } from "@tarojs/components"
import { Icon } from "@antmjs/vantui"
import WowButton from "../../components/WowButton"
import Taro from "@tarojs/taro"

import "./index.less"

const SignIn = () => {

  const goHome = () => {
    Taro.switchTab({
      url: '/pages/index/index'
    })
  }

  return (
    <View>
      <View className="info-wrapper">
        <View className="success-icon">
          <Icon name="success" size={120} color="#fff" />
        </View>
        <Text className="text success-text">签到成功</Text>
        <Text className="text current-floor">获得10益豆</Text>
        <Text className="text current-floor">当前累计2500益豆</Text>
        <View className="go-back-btn">
          <WowButton onClick={goHome}>返回</WowButton>
        </View>
      </View>
    </View>
  )
}

export default SignIn